% TEST_ID: LANG-EXPAND-0115
% CATEGORY: language/string
% 测试 string 的拼接

function test_string_plus()
s1 = "fdas";
s2 = {'fdsa', 'ss'};
s = s1 + s2;
ret = ["fdasfdsa"    "fdasss"];
assert(isequal(s, ret));

s1 = "abc";
s2 = true;
s = s1 + s2;
ret = "abctrue";
assert(isequal(s, ret));

s1 = "abc";
s2 = 12;
s = s1 + s2;
ret = "abc12";
assert(isequal(s, ret));

s1 = int16(12);
s2 = "abc";
s = s1 + s2;
ret = "12abc";
assert(isequal(s, ret));

s1 = {'aaa'};
s2 = "bbb";
s = s1 + s2;
ret = "aaabbb";
assert(isequal(s, ret));

s1 = "aa";
s2 = {"bbb"};
s = s1 + s2;
ret = "aabbb";
assert(isequal(s, ret));

s1 = "aa";
s2 = {12 34.4};
s = s1 + s2;
ret = ["aa12"    "aa34.4"];
assert(isequal(s, ret));

end